package async.callback;

import cn.hutool.core.thread.ThreadUtil;
import com.google.common.collect.Lists;
import common.model.Member;
import common.model.Order;

import java.util.List;
import java.util.UUID;

/**
 * @Author : Magic Jwz
 */
public class MockService {


    public List<Order> getOrderList(){
        ThreadUtil.safeSleep(1000);
        return Lists.newArrayList(
                Order.builder().orderNo(UUID.randomUUID().toString()).remark("测试").build()
        );
    }

    public List<Member> getMemberList(){
        ThreadUtil.safeSleep(1000);
        return Lists.newArrayList(
                Member.builder().id(12).memberName("小李").build()
        );
    }
}
